<?php $gridName = $this->gridName; ?>
<div class="paginator">
<?php if($this->hideOnSingle) : ?>
	<div class="paginator-list">
	    <div class="pagination-stat">
	       <span class="<?php echo $gridName ?>-st">
	           <?php echo $this->firstItemNumber, ' - ', $this->lastItemNumber, ' / <b>', $this->totalItemCount, '</b>' ?>
	       </span>
	    </div>
    </div>
<?php else: ?>
    <div class="paginator-row-status">
        <select class="appGrid-pr-picker input-mini" data-grid="<?php echo $gridName?>">
            <?php foreach($this->rowPerPageOptions as $r => $label) :?>
			<option <?php echo ($r == $this->itemCountPerPage) ? 'selected="selected"' : ('value="' . $r . '"') ?>>
				<?php echo $label?>
			</option>
            <?php endforeach;?>
		</select>
		<span>dòng/trang</span>
	</div>

	<div class="paginator-list">
	    <div class="pagination-stat">
	       <span class="<?php echo $gridName ?>-st">
	           <?php echo $this->firstItemNumber, ' - ', $this->lastItemNumber, ' / <b>', $this->totalItemCount, '</b>' ?>
	       </span>
	    </div>
		<div class="pagination">
			<ul class="<?php echo $gridName ?>-pp-picker appGrid-pp-picker" data-grid="<?php echo $gridName?>">
				<li class="prev<?php if(!isset($this->previous)) :?> disabled<?php endif;?>">
					<a href="##" rel="<?php echo $this->previous?>">&larr;</a>
                </li>

                <?php foreach ($this->pagesInRange as $p): ?>
			    <li<?php if($p == $this->current) :?> class="active"<?php endif;?>>
				   <a href="##" rel="<?php echo $p?>"><?php echo $p?></a>
				</li>
                <?php endforeach; ?>

				<li class="next<?php if(!isset($this->next)) :?> disabled<?php endif;?>">
                    <a href="##" rel="<?php echo $this->next?>">&rarr;</a>
                </li>
            </ul>
		</div>
	</div>

	<input class="<?php echo $gridName?>-pr" name="pr" type="hidden" value="<?php echo $this->itemCountPerPage?>" />
    <input class="<?php echo $gridName?>-pp" name="pp" type="hidden" value="<?php echo $this->current?>" />
<?php endif ?>
</div>